#ifndef _EMAC_RX_H_
#define _EMAC_RX_H_

typedef struct
{
  uint16_t head; // Start of buffers filled by emac
  uint16_t tail; // end of buffers filled by emac

  // Start of descriptor index
  // from where buffers need to 
  // be re-filled in rx ring.
  // Generally equal to head, but if going
  // short of memory, then it can lag the
  // running head.
  uint16_t buffer_fill_head;
  uint16_t buffers_consumed;
}emac_rx_ctx_t;



#endif
